package com.orphan.audit.dao;

import com.orphan.audit.po.UserFreeze;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author yichen
 * @since 2021-07-14
 */
@Repository("UserFreezeMapper")
public interface UserFreezeMapper extends BaseMapper<UserFreeze> {

    @Select("select * from t_user_freeze")
    List<UserFreeze> getAll();

    @Update("update t_user_freeze t set  t.status=#{status} where u_id=#{uId} ")
    int update(UserFreeze userFreeze);

}
